package com.pz.cloud.framework.business.material.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.pz.cloud.framework.base.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;

@Data
@TableName("material")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="场地物资", description="场地物资")
public class Material extends BaseEntity {

    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty("主键")
    private String id;

    @Excel(name = "类型", width = 15)
    @ApiModelProperty("类型")
    @Dict(dicCode = "material_type")
    private String type;

    @Excel(name = "名称", width = 15)
    @ApiModelProperty("名称")
    private String name;

    @Excel(name = "编码", width = 15)
    @ApiModelProperty("编码")
    private String code;

    @Excel(name = "总数量", width = 15)
    @ApiModelProperty("总数量")
    private Integer count;

    @Excel(name = "状态", width = 15)
    @ApiModelProperty("状态")
    @Dict(dicCode = "material_status")
    private Integer status;

    @Excel(name = "备注", width = 15)
    @ApiModelProperty("备注")
    private String remark;
}
